package com.lyEducation.core.base.TreeEntityService;

import com.lyEducation.controllers.dto.system.BaseTreeDto;
import com.lyEducation.repository.IDTypeService;

import java.util.Collection;
import java.util.List;
import java.util.TreeSet;

public interface UpDownTreeDtoService<E extends BaseTreeDto> extends IDTypeService<String> {
    TreeSet<E> upDownTreeEntity(List<E> treeEntityCollection);

    void setChildren(
            E upLevelBaseTreeEntity, Collection<E> treeEntityList);
}
